package demo1;

import java.util.Comparator;

public class NameCompare implements Comparator<People> {
    @Override
    public int compare(People o1, People o2) {
        return String.CASE_INSENSITIVE_ORDER.compare(o1.name,o2.name);
    }
}
